import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
  {
    title: '键',
    dataIndex: 'configKey',
    width: 200,
  },
  {
    title: '值',
    dataIndex: 'configVal',
    width: 200,
  },
  {
    title: '配置类型',
    dataIndex: 'configType',
    width: 200,
  },
  {
    title: '修改日期',
    dataIndex: 'updateTime',
    width: 200,
  },
  {
    title: '创建日期',
    dataIndex: 'createTime',
    width: 200,
  },
  {
    title: '说明',
    dataIndex: 'remark',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [
  {
    label: '键',
    field: 'configKey',
    component: 'Input',
    required: true,
  },
  {
    label: '值',
    field: 'configVal',
    component: 'Input',
    required: true,
  },
  {
    label: '配置类型',
    field: 'configType',
    component: 'Input',
    required: true,
  },
  {
    label: '修改日期',
    field: 'updateTime',
    component: 'Input',
    required: true,
  },
  {
    label: '创建日期',
    field: 'createTime',
    component: 'Input',
    required: true,
  },
  {
    label: '说明',
    field: 'remark',
    component: 'Input',
    required: true,
  },
];
